var naid = setInterval("", 2000);
			var naid = setInterval("", 200);
			var zz = 0; //打中的的数量
			var zs = 0; //总数
			window.onkeydown = function() {
				var key = event.keyCode;
				var Ap1 = document.getElementById("Ap1");
				for (var i = 0; i < Ap1.children.length; i++) {
					var code = Ap1.children[i].getAttribute("keycode");
					if (key == code) {
						zz++;
						hanShu();
						Ap1.removeChild(Ap1.children[i]);
						if (zz == 100) {
							alert("恭喜过关");
							stop();
							alert("是否进入下一关");
						}
						break;
					}6
				}
				que();
			}

			function kaishi() {
				clearInterval(naid);
				naid = setInterval("createAp()", 2000);
				mand = setInterval("moveAp()", 200);
				shijian();
				que();
			}

			function stop() {
				clearInterval(naid);
				clearInterval(mand);
				clearInterval(time);
			}

			function moveAp() {
				var Ap = document.getElementById("Ap1");
				for (var i = 0; i < Ap.children.length; i++) {
					var t = parseInt(Ap.children[i].style.top);
					t += 10;
					Ap.children[i].style.top = t + "px";
					if (t > 370) {
						Ap.children[i].className = "app";
					}
					if (t > 400) {
						Ap.removeChild(Ap.children[i]);
						hanShu();
					}
				}
			}

			function createAp() {
				var div = document.createElement("div");
				zs++;
				var num = parseInt(Math.random() * 26) + 65;
				div.innerHTML = "&#" + num + ";";
				div.setAttribute("keycode", num);
				var left = parseInt(Math.random() * 700) + 10;
				div.style.left = left + "px";
				div.style.top = "-10px";
				document.getElementById("Ap1").appendChild(div);
			}
			var s = 0;
			var h = 0;
			var m = 0;

			function shijian() {
				s++;
				if (s == 61) {
					s = 0
					m++;
				}
				if (m == 61) {
					h++;
				}
				var shi = document.getElementById("shi");
				shi.innerHTML = "时间：" + h + ':' + m + ':' + s;
				time = setTimeout("shijian()", 1000)
			}

			function hanShu() {
				var l = parseInt((zz / zs) * 100);
				var gs = document.getElementById("que");
				gs.innerHTML = "正确率：" + l + "%";
			}

			function que() {
				var t = parseInt(zz / (h * 60 + m + s / 60));
				var q = document.getElementById("gs");
				q.innerHTML = "速度：" + t;
			}